-
Notifications
You must be signed in to change notification settings - Fork 20
Write Project.toml with the same section sorting as Pkg #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Write Project.toml with the same section sorting as Pkg #74
Conversation
|
this would be nice to have. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #74 +/- ##
=========================================
Coverage ? 93.10%
=========================================
Files ? 2
Lines ? 174
Branches ? 0
=========================================
Hits ? 162
Misses ? 12
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fingolfin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me but would indeed be great if @KristofferC could comment
| # Taken from Pkg.jl v1.11.4 (but we don't want to depend on Pkg.jl directly just for this) | ||
| # https://github.com/JuliaLang/Pkg.jl/blob/v1.11.4/src/project.jl#L235 | ||
| # with `preferences` added before `deps` | ||
| const _project_key_order = ["name", "uuid", "keywords", "license", "desc", "preferences", "deps", "weakdeps", "sources", "extensions", "compat"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we insert preferences here, should a similar patch be made to Pkg.jl so that it also sorts preferences to the same position?
| if VERSION > v"1.11.0-" | ||
| @testset "Project.toml writing" begin | ||
| Pkg.activate("PkgV_1_11_plus") do | ||
| @eval using PkgV_1_11_plus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code suffers from world age issues, hence the tests are failing with Julia >= 1.12
See also my PR #88 which might give a suggestion how to fix this (but perhaps a better solution is possible)
close #52
Let me know:
preferencessection... up near the top made sense to me... could also be at the bottom ofc, someone just got to pick